﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyGiaoVuDAL.DTO;
using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;

namespace QuanLyGiaoVuService.CommandServices
{
    public class DangKyKetThucLopMonHocCommandService:IDangKyKetThucLopMonHocCommandService
    {
        private IDangKyKetThucLopMonHocRepository _dangKyKetThucLopMonHocRepository;
        public DangKyKetThucLopMonHocCommandService(IDangKyKetThucLopMonHocRepository dangKyKetThucLopMonHocRepository)
        {
            _dangKyKetThucLopMonHocRepository = dangKyKetThucLopMonHocRepository;
        }
        public DangKyKetThucLopMonHocDTO InsertDangKy(DangKyKetThucLopMonHocDTO dangky)
        {
            return _dangKyKetThucLopMonHocRepository.InsertDangKy(dangky);
        }
        public DangKyKetThucLopMonHocDTO UpdateDangKy(DangKyKetThucLopMonHocDTO dangky)
        {
            return _dangKyKetThucLopMonHocRepository.UpdateDangKy(dangky);
        }
        public bool DeleteDangKy(Guid ID)
        {
            return _dangKyKetThucLopMonHocRepository.DeleteDangKy(ID);
        }
    }
}
